<template>
  <div>
    <header>
      <h1>餐饮管理系统</h1>
    </header>
    <section class="content clear">
      <nav class="left">
        <navList></navList>
      </nav>
      <section class="right">
        <h1></h1>
        <router-view></router-view>
      </section>
    </section>
  </div>
</template>

<script>
import navList from "../components/NavList.vue";
import utils from "../utils/storage";
export default {
  name: "home",
  components: {
    navList
  },
  data() {
    return {};
  },
  computed: {},
  created() {},
  methods: {}
};
</script>

<style scoped lang="less">
header {
  background-color: greenyellow;
  overflow: hidden;
  text-align: center;
}
.left {
  float: left;
  height: 100%;
}
.content {
  height: 800px;
}
.right {
  float: right;
  height: 100%;
}
.content > nav {
  width: 20%;
  height: 100%;
  background-color: yellow;
}
.content > section {
  width: 80%;
  height: 100%;
  background-color: pink;
  padding: 30px 40px;
  box-sizing: border-box;
}
</style>
